package com.dragon.modules.yuegou.model.order;

import com.dragon.modules.yuegou.entity.order.PointRatioEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 订单积分信息模型类
 * 
 * @author pbuilder generated
 * @date 2022-08-11 10:22:49
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class PointRatio extends PointRatioEntity {

	/**
	 * 构造一个空订单积分信息模型对象
	 */
	public PointRatio(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个订单积分信息模型对象
	 * 
	 * @param entity 实体对象
	 */
	public PointRatio(PointRatioEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个订单积分信息模型对象
	 * 
	 * @param other 其它对象
	 */
	public PointRatio(PointRatio other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置ID
	 * 
	 * @param id ID
	 * @return 当前对象
	 */
    public PointRatio id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public PointRatio orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public PointRatio busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 * @return 当前对象
	 */
    public PointRatio merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public PointRatio memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public Integer getGainPoint() {
    	return gainPoint;
    }

    /**
	 * 设置商圈获取积分
	 * 
	 * @param gainPoint 商圈获取积分
	 * @return 当前对象
	 */
    public PointRatio gainPoint(Integer gainPoint) {
    	this.gainPoint = gainPoint;
    	return this;
    }

	@Override
	public Integer getBeforePoint() {
    	return beforePoint;
    }

    /**
	 * 设置商圈原始积分
	 * 
	 * @param beforePoint 商圈原始积分
	 * @return 当前对象
	 */
    public PointRatio beforePoint(Integer beforePoint) {
    	this.beforePoint = beforePoint;
    	return this;
    }

	@Override
	public Integer getMerchantGainPoint() {
    	return merchantGainPoint;
    }

    /**
	 * 设置商铺获取积分
	 * 
	 * @param merchantGainPoint 商铺获取积分
	 * @return 当前对象
	 */
    public PointRatio merchantGainPoint(Integer merchantGainPoint) {
    	this.merchantGainPoint = merchantGainPoint;
    	return this;
    }

	@Override
	public Integer getMerchantBeforePoint() {
    	return merchantBeforePoint;
    }

    /**
	 * 设置商铺原始积分
	 * 
	 * @param merchantBeforePoint 商铺原始积分
	 * @return 当前对象
	 */
    public PointRatio merchantBeforePoint(Integer merchantBeforePoint) {
    	this.merchantBeforePoint = merchantBeforePoint;
    	return this;
    }

	@Override
	public Integer getMemberGainPoint() {
    	return memberGainPoint;
    }

    /**
	 * 设置会员获取积分
	 * 
	 * @param memberGainPoint 会员获取积分
	 * @return 当前对象
	 */
    public PointRatio memberGainPoint(Integer memberGainPoint) {
    	this.memberGainPoint = memberGainPoint;
    	return this;
    }

	@Override
	public Integer getMemberBeforePoint() {
    	return memberBeforePoint;
    }

    /**
	 * 设置会员商圈原始积分
	 * 
	 * @param memberBeforePoint 会员商圈原始积分
	 * @return 当前对象
	 */
    public PointRatio memberBeforePoint(Integer memberBeforePoint) {
    	this.memberBeforePoint = memberBeforePoint;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public PointRatio createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
